<!doctype html>
<html class="x-admin-sm">
    <head>
        {include file="common/head" /}
        <script>
            // 是否开启刷新记忆tab功能
            // var is_remember = false;
        </script>
    </head>
    <body class="index">
        <!-- 顶部开始 -->
        <div class="container">
            <div class="logo">
                <a href="{:url('control/index/index')}">{:getSystem("ADMIN_NAME")}</a></div>
            <div class="left_open">
                <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
            </div>


            <ul class="layui-nav left fast-add" lay-filter="">
                {volist name="Menu" id="vo"}
                {eq name="vo['position']" value="1"}
                <li class="layui-nav-item">
                    {eq name="vo['type']" value="1"}
                    <a onclick="xadmin.add_tab('{$vo.name}','{:url($vo["controller"]."/".$vo["action"])}')">
                    {else/}
                    <a href="javascript:;">
                    {/eq}
                        {$vo.name}
                    </a>
                    {notempty name="vo['child']"}
                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
                        {volist name="vo['child']" id="two"}
                        <dd>
                            {eq name="two['type']" value="1"}
                            <a onclick="xadmin.add_tab('{$two.name}','{:url($two["controller"]."/".$two["action"])}')">
                            {else/}
                            <a href="javascript:;">
                            {/eq}
                                <i class="iconfont">{$two.icon}</i>
                                {$two.name}
                            </a>
                        </dd>
                        {/volist}

                        <!--
                        <a onclick="xadmin.open('弹出自动宽高','http://www.baidu.com')">弹出自动宽高</a>
                        <a onclick="xadmin.open('弹出指定宽高','http://www.baidu.com',500,300)">弹出指定宽高</a>
                        <a onclick="xadmin.add_tab('在tab打开','member-list.html')">在tab打开</a>
                        <a onclick="xadmin.add_tab('在tab打开刷新','member-del.html',true)">在tab打开刷新</a>
                        -->
                    </dl>
                    {/notempty}
                </li>
                {/eq}
                {/volist}
            </ul>
            <ul class="layui-nav right" lay-filter="">
                <li class="layui-nav-item">
                    <a href="javascript:;">{$userInfo.nickname}</a>
                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
                        <dd><a onclick="xadmin.add_tab('个人信息','{:url("AdminUser/edit",["id"=>$userInfo["id"]])}')">个人信息</a></dd>
                        <dd><a onclick="xadmin.add_tab('修改密码','{:url("AdminUser/update_pwd")}')">修改密码</a></dd>
                        <dd><a href="{:url('Public/logout')}">退出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item to-index"><a href="{:url('Public/clear_all')}">清除缓存</a></li>
                <li class="layui-nav-item to-index"><a href="/">前台首页</a></li>
            </ul>
        </div>
        <!-- 顶部结束 -->
        <!-- 中部开始 -->
        <!-- 左侧菜单开始 -->
        <div class="left-nav">
            <div id="side-nav">
                <ul id="nav">
                    {volist name="Menu" id="vo"}
                    {eq name="vo['position']" value="0"}
                    <li>
                        {eq name="vo['type']" value="1"}
                        <a onclick="xadmin.add_tab('{$vo.name}','{:url($vo["controller"]."/".$vo["action"])}')">
                        {else/}
                        <a href="javascript:;">
                        {/eq}
                            <i class="iconfont left-nav-li" lay-tips="{$vo.name}">{$vo.icon}</i>
                            <cite>{$vo.name}</cite>
                            {notempty name="vo['child']"}<i class="iconfont nav_right">&#xe697;</i>{/notempty}
                        </a>

                        {notempty name="vo['child']"}
                        <ul class="sub-menu">
                            {volist name="vo['child']" id="two"}
                            <li>
                                {eq name="two['type']" value="1"}
                                <a onclick="xadmin.add_tab('{$two.name}','{:url($two["controller"]."/".$two["action"])}')">
                                {else/}
                                <a href="javascript:;">
                                {/eq}
                                    <i class="iconfont">{$two.icon}</i>
                                    <cite>{$two.name}</cite>
                                    {notempty name="two['child']"}<i class="iconfont nav_right">&#xe697;</i>{/notempty}
                                </a>

                                {notempty name="two['child']"}
                                <ul class="sub-menu">
                                    {volist name="two['child']" id="three"}
                                    <li>
                                        <a onclick="xadmin.add_tab('{$three.name}','{:url($three["controller"]."/".$three["action"])}')">
                                            <i class="iconfont">{$three.icon}</i>
                                            <cite>{$three.name}</cite></a>
                                    </li>
                                    {/volist}
                                </ul>
                                {/notempty}
                            </li>
                            {/volist}
                        </ul>
                        {/notempty}
                    </li>
                    {/eq}
                    {/volist}
                </ul>
            </div>
        </div>
        <!-- <div class="x-slide_left"></div> -->
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
            <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
                <ul class="layui-tab-title">
                    <li class="home" title="右击关闭"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
                </ul>
                <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
                    <dl>
                        <dd data-type="this">关闭当前</dd>
                        <dd data-type="other">关闭其它</dd>
                        <dd data-type="all">关闭全部</dd>
                    </dl>
                </div>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe src='{:url("welcome")}' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                    </div>
                </div>
                <div id="tab_show"></div>
            </div>
        </div>
        <div class="page-content-bg"></div>
        <style id="theme_style"></style>
        <!-- 右侧主体结束 -->
        <!-- 中部结束 -->

    </body>

</html>